

package com.hazelcast.query.impl;

import java.util.Iterator;

/**
 * A holder for one index key and associated entries.
 */
public class IndexKeyEntries {
    private final Comparable<?> indexKey;
    private final Iterator<QueryableEntry> entries;

    public IndexKeyEntries(Comparable<?> indexKey, Iterator<QueryableEntry> entries) {
        this.indexKey = indexKey;
        this.entries = entries;
    }

    public Comparable<?> getIndexKey() {
        return indexKey;
    }

    public Iterator<QueryableEntry> getEntries() {
        return entries;
    }
}
